package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusStreetLedgerMapper;
import com.ruoyi.business.domain.BusStreetLedger;
import com.ruoyi.business.service.IBusStreetLedgerService;
import javax.annotation.Resource;

/**
 * 街道台账Service业务层处理
 * 
 * @author ling
 * @date 2024-07-11
 */
@Service
public class BusStreetLedgerServiceImpl implements IBusStreetLedgerService 
{
    @Resource
    private BusStreetLedgerMapper busStreetLedgerMapper;

    /**
     * 查询街道台账
     * 
     * @param id 街道台账主键
     * @return 街道台账
     */
    @Override
    public BusStreetLedger selectBusStreetLedgerById(Long id)
    {
        return busStreetLedgerMapper.selectBusStreetLedgerById(id);
    }

    /**
     * 查询街道台账列表
     * 
     * @param busStreetLedger 街道台账
     * @return 街道台账
     */
    @Override
    public List<BusStreetLedger> selectBusStreetLedgerList(BusStreetLedger busStreetLedger)
    {
        return busStreetLedgerMapper.selectBusStreetLedgerList(busStreetLedger);
    }

    /**
     * 新增街道台账
     * 
     * @param busStreetLedger 街道台账
     * @return 结果
     */
    @Override
    public int insertBusStreetLedger(BusStreetLedger busStreetLedger)
    {
        return busStreetLedgerMapper.insertBusStreetLedger(busStreetLedger);
    }

    /**
     * 修改街道台账
     * 
     * @param busStreetLedger 街道台账
     * @return 结果
     */
    @Override
    public int updateBusStreetLedger(BusStreetLedger busStreetLedger)
    {
        return busStreetLedgerMapper.updateBusStreetLedger(busStreetLedger);
    }

    /**
     * 批量删除街道台账
     * 
     * @param ids 需要删除的街道台账主键
     * @return 结果
     */
    @Override
    public int deleteBusStreetLedgerByIds(Long[] ids)
    {
        return busStreetLedgerMapper.deleteBusStreetLedgerByIds(ids);
    }

    /**
     * 删除街道台账信息
     * 
     * @param id 街道台账主键
     * @return 结果
     */
    @Override
    public int deleteBusStreetLedgerById(Long id)
    {
        return busStreetLedgerMapper.deleteBusStreetLedgerById(id);
    }

    /**
     * 功能描述：获取num
     *
     * @return {@link Integer }
     * @author ling
     * @date 2024/08/22 15:28
     */
    @Override
    public Integer getCount() {
        return busStreetLedgerMapper.getCount();
    }
}
